package com.woniu.common.entity;

import java.io.Serializable;

/**
 * jp_bedinfo
 * @author 
 */
public class JpBedinfo implements Serializable {
    private Long id;

    /**
     * 医院ID
     */
    private Long hospitalid;

    /**
     * 医院科室ID
     */
    private Long hospitalKeshi;

    /**
     * 设备型号
     */
    private String unitType;

    /**
     * 厂家联系地址
     */
    private String manufacturerAddress;

    /**
     * 厂家联系电话
     */
    private String manufacturerPhone;

    /**
     * 厂家联系人
     */
    private String manufacturerLxr;

    /**
     * 添加时间
     */
    private String addTime;

    /**
     * 状态 0闲，1忙，2异常
1.闲 2.忙 3.异常
     */
    private Integer status;

    /**
     * 电池电量
     */
    private String batteryLevel;

    /**
     * 床位编号
     */
    private String bedCode;

    /**
     * 蓝牙地址
     */
    private String imme;

    private String signalLevel;

    /**
     * 开锁时电压
     */
    private String baatteryLevelOpen;

    /**
     * 状态更新时间
     */
    private String dateUpdateStatus;

    private Integer userId;

    /**
     * 备注
     */
    private String remark;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getHospitalid() {
        return hospitalid;
    }

    public void setHospitalid(Long hospitalid) {
        this.hospitalid = hospitalid;
    }

    public Long getHospitalKeshi() {
        return hospitalKeshi;
    }

    public void setHospitalKeshi(Long hospitalKeshi) {
        this.hospitalKeshi = hospitalKeshi;
    }

    public String getUnitType() {
        return unitType;
    }

    public void setUnitType(String unitType) {
        this.unitType = unitType;
    }

    public String getManufacturerAddress() {
        return manufacturerAddress;
    }

    public void setManufacturerAddress(String manufacturerAddress) {
        this.manufacturerAddress = manufacturerAddress;
    }

    public String getManufacturerPhone() {
        return manufacturerPhone;
    }

    public void setManufacturerPhone(String manufacturerPhone) {
        this.manufacturerPhone = manufacturerPhone;
    }

    public String getManufacturerLxr() {
        return manufacturerLxr;
    }

    public void setManufacturerLxr(String manufacturerLxr) {
        this.manufacturerLxr = manufacturerLxr;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getBatteryLevel() {
        return batteryLevel;
    }

    public void setBatteryLevel(String batteryLevel) {
        this.batteryLevel = batteryLevel;
    }

    public String getBedCode() {
        return bedCode;
    }

    public void setBedCode(String bedCode) {
        this.bedCode = bedCode;
    }

    public String getImme() {
        return imme;
    }

    public void setImme(String imme) {
        this.imme = imme;
    }

    public String getSignalLevel() {
        return signalLevel;
    }

    public void setSignalLevel(String signalLevel) {
        this.signalLevel = signalLevel;
    }

    public String getBaatteryLevelOpen() {
        return baatteryLevelOpen;
    }

    public void setBaatteryLevelOpen(String baatteryLevelOpen) {
        this.baatteryLevelOpen = baatteryLevelOpen;
    }

    public String getDateUpdateStatus() {
        return dateUpdateStatus;
    }

    public void setDateUpdateStatus(String dateUpdateStatus) {
        this.dateUpdateStatus = dateUpdateStatus;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JpBedinfo other = (JpBedinfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getHospitalid() == null ? other.getHospitalid() == null : this.getHospitalid().equals(other.getHospitalid()))
            && (this.getHospitalKeshi() == null ? other.getHospitalKeshi() == null : this.getHospitalKeshi().equals(other.getHospitalKeshi()))
            && (this.getUnitType() == null ? other.getUnitType() == null : this.getUnitType().equals(other.getUnitType()))
            && (this.getManufacturerAddress() == null ? other.getManufacturerAddress() == null : this.getManufacturerAddress().equals(other.getManufacturerAddress()))
            && (this.getManufacturerPhone() == null ? other.getManufacturerPhone() == null : this.getManufacturerPhone().equals(other.getManufacturerPhone()))
            && (this.getManufacturerLxr() == null ? other.getManufacturerLxr() == null : this.getManufacturerLxr().equals(other.getManufacturerLxr()))
            && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getBatteryLevel() == null ? other.getBatteryLevel() == null : this.getBatteryLevel().equals(other.getBatteryLevel()))
            && (this.getBedCode() == null ? other.getBedCode() == null : this.getBedCode().equals(other.getBedCode()))
            && (this.getImme() == null ? other.getImme() == null : this.getImme().equals(other.getImme()))
            && (this.getSignalLevel() == null ? other.getSignalLevel() == null : this.getSignalLevel().equals(other.getSignalLevel()))
            && (this.getBaatteryLevelOpen() == null ? other.getBaatteryLevelOpen() == null : this.getBaatteryLevelOpen().equals(other.getBaatteryLevelOpen()))
            && (this.getDateUpdateStatus() == null ? other.getDateUpdateStatus() == null : this.getDateUpdateStatus().equals(other.getDateUpdateStatus()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getHospitalid() == null) ? 0 : getHospitalid().hashCode());
        result = prime * result + ((getHospitalKeshi() == null) ? 0 : getHospitalKeshi().hashCode());
        result = prime * result + ((getUnitType() == null) ? 0 : getUnitType().hashCode());
        result = prime * result + ((getManufacturerAddress() == null) ? 0 : getManufacturerAddress().hashCode());
        result = prime * result + ((getManufacturerPhone() == null) ? 0 : getManufacturerPhone().hashCode());
        result = prime * result + ((getManufacturerLxr() == null) ? 0 : getManufacturerLxr().hashCode());
        result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getBatteryLevel() == null) ? 0 : getBatteryLevel().hashCode());
        result = prime * result + ((getBedCode() == null) ? 0 : getBedCode().hashCode());
        result = prime * result + ((getImme() == null) ? 0 : getImme().hashCode());
        result = prime * result + ((getSignalLevel() == null) ? 0 : getSignalLevel().hashCode());
        result = prime * result + ((getBaatteryLevelOpen() == null) ? 0 : getBaatteryLevelOpen().hashCode());
        result = prime * result + ((getDateUpdateStatus() == null) ? 0 : getDateUpdateStatus().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", hospitalid=").append(hospitalid);
        sb.append(", hospitalKeshi=").append(hospitalKeshi);
        sb.append(", unitType=").append(unitType);
        sb.append(", manufacturerAddress=").append(manufacturerAddress);
        sb.append(", manufacturerPhone=").append(manufacturerPhone);
        sb.append(", manufacturerLxr=").append(manufacturerLxr);
        sb.append(", addTime=").append(addTime);
        sb.append(", status=").append(status);
        sb.append(", batteryLevel=").append(batteryLevel);
        sb.append(", bedCode=").append(bedCode);
        sb.append(", imme=").append(imme);
        sb.append(", signalLevel=").append(signalLevel);
        sb.append(", baatteryLevelOpen=").append(baatteryLevelOpen);
        sb.append(", dateUpdateStatus=").append(dateUpdateStatus);
        sb.append(", userId=").append(userId);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}